<template>
  <div class="select1">
    <Item
      :data="itemData"
      @colorChange="colorChange()"
      @tagClick="tagClick()"
    />
  </div>
</template>

<script>
/* eslint-disable */
import Item from "./item";

export default {
  components: {
    Item
  },
  data() {
    return {
      msg: "select01",
      itemData: [
        {
          title: "选择商品",
          tags: ["汽油", "柴油"]
        },
        {
          title: "选择油耗",
          tags: ["98#", "95#", "92#"]
        },
        {
          title: "选择油枪",
          tags: ["2号", "4号", "6号", "8号", "10号"]
        }
      ]
    };
  },
  methods: {
    colorChange() {
      console.log('color change')
    },
    tagClick() {
      console.log('tagClick')
    }
  }
};
</script>
